/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package com.taobao.weex.common;

public class Constants {

    public interface Orientation {

        int HORIZONTAL = 0;
        int VERTICAL = 1;
    }

    public interface Name {

        String DEFAULT_WIDTH = "defaultWidth";
        String DEFAULT_HEIGHT = "defaultHeight";
        String HREF = "href";
        String WIDTH = "width";
        String MIN_WIDTH = "minWidth";
        String MAX_WIDTH = "maxWidth";
        String HEIGHT = "height";
        String MIN_HEIGHT = "minHeight";
        String MAX_HEIGHT = "maxHeight";
        String ALIGN_ITEMS = "alignItems";
        String ALIGN_SELF = "alignSelf";
        String FLEX = "flex";
        String FLEX_DIRECTION = "flexDirection";
        String JUSTIFY_CONTENT = "justifyContent";
        String FLEX_WRAP = "flexWrap";

        String MARGIN = "margin";
        String MARGIN_TOP = "marginTop";
        String MARGIN_LEFT = "marginLeft";
        String MARGIN_RIGHT = "marginRight";
        String MARGIN_BOTTOM = "marginBottom";
        String PADDING = "padding";
        String PADDING_TOP = "paddingTop";
        String PADDING_LEFT = "paddingLeft";
        String PADDING_RIGHT = "paddingRight";
        String PADDING_BOTTOM = "paddingBottom";

        String LEFT = "left";
        String TOP = "top";
        String RIGHT = "right";
        String BOTTOM = "bottom";


        String BACKGROUND_COLOR = "backgroundColor";
        String BACKGROUND_IMAGE = "backgroundImage";
        String OPACITY = "opacity";
        String BORDER_RADIUS = "borderRadius";
        String BORDER_WIDTH = "borderWidth";
        String BORDER_COLOR = "borderColor";
        String BORDER_STYLE = "borderStyle";
        String BORDER_TOP_WIDTH = "borderTopWidth";
        String BORDER_RIGHT_WIDTH = "borderRightWidth";
        String BORDER_BOTTOM_WIDTH = "borderBottomWidth";
        String BORDER_LEFT_WIDTH = "borderLeftWidth";
        String BORDER_TOP_COLOR = "borderTopColor";
        String BORDER_RIGHT_COLOR = "borderRightColor";
        String BORDER_BOTTOM_COLOR = "borderBottomColor";
        String BORDER_LEFT_COLOR = "borderLeftColor";
        String BORDER_TOP_LEFT_RADIUS = "borderTopLeftRadius";
        String BORDER_TOP_RIGHT_RADIUS = "borderTopRightRadius";
        String BORDER_BOTTOM_RIGHT_RADIUS = "borderBottomRightRadius";
        String BORDER_BOTTOM_LEFT_RADIUS = "borderBottomLeftRadius";
        String BORDER_RIGHT_STYLE = "borderRightStyle";
        String BORDER_BOTTOM_STYLE = "borderBottomStyle";
        String BORDER_LEFT_STYLE = "borderLeftStyle";
        String BORDER_TOP_STYLE = "borderTopStyle";

        String POSITION = "position";

        String KEEP_SCROLL_POSITION = "keepScrollPosition";

        String TEXT_DECORATION = "textDecoration";
        String TEXT_ALIGN = "textAlign";
        String FONT_WEIGHT = "fontWeight";
        String FONT_STYLE = "fontStyle";
        String FONT_SIZE = "fontSize";
        String COLOR = "color";
        String LINES = "lines";
        String FONT_FAMILY = "fontFamily";
        String TEXT_OVERFLOW = "textOverflow";
        String ELLIPSIS = "ellipsis";
        String LINE_HEIGHT = "lineHeight";
        String DISABLED = "disabled";
        String VALUE = "value";
        String IMAGE_QUALITY = "imageQuality";
        String FILTER = "filter";
        String QUALITY = "quality";
        String SRC = "src";
        String PLACE_HOLDER = "placeHolder";
        String RESIZE_MODE = "resizeMode";
        String SHOW_INDICATORS = "showIndicators";
        String AUTO_PLAY = "autoPlay";
        String SCROLL_DIRECTION = "scrollDirection";
        String SCOPE = "scope";
        String RECYCLE = "recycle";
        String LOADMORERETRY = "loadmoreretry";
        String LOADMOREOFFSET = "loadmoreoffset";
        String RECYCLE_IMAGE = "recycleImage";
        String LAYOUT = "layout";
        String COLUMN_WIDTH = "columnWidth";
        String COLUMN_COUNT = "columnCount";
        String COLUMN_GAP = "columnGap";
        String SHOW_SCROLLBAR = "showScrollbar";
        String OVERFLOW = "overflow";
        String TYPE = "type";
        String PLACEHOLDER = "placeholder";
        String PLACEHOLDER_COLOR = "placeholderColor";
        String AUTOFOCUS = "autofocus";
        String SINGLELINE = "singleline";
        String MAX_LENGTH = "maxLength";
        String MAXLENGTH = "maxlength";
        String ROWS = "rows";
        String CHECKED = "checked";
        String VISIBILITY = "visibility";
        String ITEM_COLOR = "itemColor";
        String ITEM_SELECTED_COLOR = "itemSelectedColor";
        String ITEM_SIZE = "itemSize";
        String DISPLAY = "display";
        String SHOW_LOADING = "show-loading";
        String SUFFIX = "suffix";
        String RESIZE = "resize";
        String IMAGE_SHARPEN = "imageSharpen";
        String SHARPEN = "sharpen";
        String PREFIX = "prefix";
        String INDEX = "index";
        String INTERVAL = "interval";
        String PLAY_STATUS = "playStatus";
        String FONT_FACE = "fontFace";
        String MAX = "max";
        String MIN = "min";
        String NAV_BAR_VISIBILITY = "hidden";
        String OFFSET_X_ACCURACY = "offsetXAccuracy";
        String OFFSET_X_RATIO = "offsetXRatio";
        String ELEVATION = "elevation";
        String SCROLLABLE = "scrollable";
        String DRAGGABLE = "draggable";
        String DISTANCE_Y = "dy";
        String PULLING_DISTANCE = "pullingDistance";
        String VIEW_HEIGHT = "viewHeight";
        String PREVENT_MOVE_EVENT = "preventMoveEvent";
        String SELECTION_START = "selectionStart";
        String SELECTION_END = "selectionEnd";
        String OFFSET_ACCURACY = "offsetAccuracy";
        String CONTENT_SIZE = "contentSize";
        String CONTENT_OFFSET = "contentOffset";
        String X = "x";
        String Y = "y";
        String RETURN_KEY_TYPE = "returnKeyType";
        String OFFSET = "offset";
        String ANIMATED = "animated";
        String STABLE = "stable";

        String INSERT_CELL_ANIMATION = "insertAnimation";
        String DELETE_CELL_ANIMATION = "deleteAnimation";
        String AUTO = "auto";
        String NORMAL = "normal";
        String ARIA_LABEL = "ariaLabel";
        String ARIA_HIDDEN = "ariaHidden";
        /**
         * 本木自定义   是否显示下拉刷新
         */

        String SHOW_REFRESH = "showRefresh";
        String TINTCOLOR = "tintColor";
    }

    public interface Value {

        int DENSITY = 3;
        int NAV_BAR_SHOWN = 0;
        int NAV_BAR_HIDDEN = 1;
        int AUTO = -1;
        int COLUMN_GAP_NORMAL = 32;
        int COLUMN_COUNT_NORMAL = 1;
        String MULTI_COLUMN = "multi-column";
        String GRID = "grid";
        String STICKY = "sticky";
        String FIXED = "fixed";
        String LEFT = "left";
        String RIGHT = "right";
        String CENTER = "center";
        String BOLD = "bold";
        String ITALIC = "italic";
        String ORIGINAL = "original";
        String LOW = "low";
        String NORMAL = "normal";
        String HIGH = "high";
        String VISIBLE = "visible";
        String HIDDEN = "hidden";
        String TEXT = "text";
        String PASSWORD = "password";
        String TEL = "tel";
        String EMAIL = "email";
        String URL = "url";
        String DATE = "date";
        String TIME = "time";
        String DATETIME = "datetime";
        String PLAY = "play";
        String PAUSE = "pause";
        String STOP = "stop";
        String DIRECTION_LEFT = "left";
        String DIRECTION_RIGHT = "right";
        String DIRECTION_UP = "up";
        String DIRECTION_DOWN = "down";
        String NUMBER = "number";
        String NUMBERDECIMAL = "decimal";

        String NONE = "none";
        String DEFAULT = "default";
    }

    public interface Event {

        String CLICK = "click";
        String APPEAR = "appear";
        String DISAPPEAR = "disappear";
        String LOADMORE = "loadmore";
        String FOCUS = "focus";
        String BLUR = "blur";
        String INPUT = "input";
        String VIEWAPPEAR = "viewappear";
        String VIEWDISAPPEAR = "viewdisappear";
        String START = "start";
        String PAUSE = "pause";
        String FINISH = "finish";
        String FAIL = "fail";
        String ERROR = "error";
        String RECEIVEDTITLE = "receivedtitle";
        String PAGEFINISH = "pagefinish";
        String PAGESTART = "pagestart";
        String ONREFRESH = "refresh";
        String ONLOADING = "loading";
        String ONLOAD = "load";
        String CHANGE = "change";
        String ONPULLING_DOWN = "pullingdown";
        String ONPULLING_UP = "pullingup";
        String SCROLL = "scroll";
        String CLICKBACKITEM = "clickbackitem";
        String RESUME_EVENT = "WXApplicationDidBecomeActiveEvent";
        String PAUSE_EVENT = "WXApplicationWillResignActiveEvent";
        String RETURN = "return";
        String KEYBOARD = "keyboard";
    }

    public interface PSEUDO {
        String ACTIVE = ":active";
        String ENABLED = ":enabled";
        String DISABLED = ":disabled";
        String FOCUS = ":focus";
    }

    public interface Scheme {

        String FILE = "file";
        String HTTPS = "https";
        String HTTP = "http";
        String LOCAL = "local";
    }

    public interface CodeCache {
        String URL = "bundleUrl";
        String DIGEST = "bundleDigest";
        String PATH = "codeCachePath";
        String BANNER_DIGEST = "digest";
        String SAVE_PATH = "v8";
    }
}
